package com.yusysqdy.gulimall.seckill.service;

import com.yusysqdy.gulimall.seckill.to.SeckillSkuRedisTo;

import java.util.List;

/**
 * @program: gulimail
 * @contact: qindy0116@126.com
 * @author: Mr.DYQin
 * @create: 2021-02-25 10:15
 * @Description:
 **/
public interface SeckillService {

    void uploadSeckillSkuLatest3Day();

    /**
     * 获取当前可以参与秒杀的商品信息
     */
    List<SeckillSkuRedisTo> getCurrentSeckillSkus();

    SeckillSkuRedisTo getSkuSeckillInfo(Long skuId);

    String kill(String killId, String key, Integer num);
}
